﻿using MediatR;
using Sgr.Application.Commands;
using Sgr.Domain.Uow;

namespace Sgr.UPMS.Application.Commands.Organizations
{
    public class CreateOrgInvitationCommand : IRequest<CommandResult<string>>, IRequireUnitOfWork
    {
        /// <summary>
        /// 有效期（小时）
        /// </summary>
        public int ValidHours { get; set; } = 24;

        /// <summary>
        /// 使用次数限制（-1表示不限制）
        /// </summary>
        public int UsageLimit { get; set; } = -1;

        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }
    }
}